class Teaches(db.Model):
    __tablename__ = "teaches"

    teaches_id = db.Column(db.Integer, primary_key=True, unique=True)
    professor_id = db.Column(db.Integer, db.ForeignKey("professor.professor_id", ondelete='CASCADE'))
    course_id = db.Column(db.Integer, db.ForeignKey("course.course_id", ondelete='CASCADE'))
    section_id = db.Column(db.Integer, db.ForeignKey('section.section_id', ondelete='CASCADE'))